import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// Element UI
// import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
// Vue.use(ElementUI);
//引入 element 插件
import element from './components/element'
Vue.use(element)

import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.use(VueAxios, axios)


Vue.config.productionTip = false

// 配置动态修改Title
router.beforeEach((to, from, next) => {
    /* 路由发生变化修改页面title */
    if (to.meta.title) {
        document.title = to.meta.title
    }
    next()
});




new Vue({
    router,
    store,
    // 全局事件总线
    beforeCreate() {
        Vue.prototype.$bus = this; //安装全局事件总线
    },
    render: h => h(App)
}).$mount('#app')


